package com.mapbased.wfw;

/**
 * <p>Title: </p>
 *
 * <p>Description: before throw ,thrower should set the action for target page if is serverside redirect</p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: mapbased.com</p>
 *
 * @author chy(Baily)
 * @version 1.0
 */
public class PageRedirectExceprion
    extends RuntimeException
{
    /**
     * full name include path
     */
    private String pageName;
    /**
     * if true:rerender another page,and will reuse all the request params exclude action
     * else :send redirect to client
     */
    private boolean serverSide;

    public PageRedirectExceprion(String pageName,boolean serverSide)
    {
        this.pageName=pageName;
        this.serverSide=serverSide;
    }

    public void setPageName(String pageName)
    {
        this.pageName=pageName;
    }

    public void setServerSide(boolean serverSide)
    {
        this.serverSide=serverSide;
    }

    public String getPageName()
    {
        return pageName;
    }

    public boolean isServerSide()
    {
        return serverSide;
    }

}
